#ifndef _COMMON_H_
#define _COMMON_H_

#include <stdint.h>

#define mPASSWORD_CNT               (6)
#define mPASSWORD_DISP_X_INDEX      (24)
#define mPASSWORD_DISP_Y_INDEX      (44)
#define mPASSWORD_DISP_SQUARE_WIDTH (10)

#define mMANAGE_PASSWORD            (456789)

#define mPASSWORD_MAX_ERROR_CNT     (3)

typedef enum
{
    eMENU_INDEX_INPUT_SLEEP = 0,
    eMENU_INDEX_INPUT_PASSWORD,
    eMENU_INDEX_MANAGE_MODE,
    eMENU_INDEX_CHANGE_PASSWORD_1,
    eMENU_INDEX_CHANGE_PASSWORD_2,
    eMENU_INDEX_MAX,
} eMenuIndex;

void vRead_Password(void);
void vDisplay_Task(uint8_t ucKeyValue);
uint8_t vGet_Beep_Alarm_Flag(void);
void vBeep_Alarm_Task(void);

#endif

